import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  persist: {
    enabled: true,
    strategies: [
      {
        storage: localStorage
      }
    ]
  },
  state: () => {
    return {
      user: {} as { id: number, userName: string }
    }
  }
})